package com.dmpp.mes.service.impl;


import com.dmpp.mes.bean.RespEnum;
import com.dmpp.mes.bean.ResponseData;
import com.dmpp.mes.dao.AromaMapper;
import com.dmpp.mes.dao.MaterialWarehouseMapper;
import com.dmpp.mes.parameterInfo.Aroma;
import com.dmpp.mes.parameterInfo.MaterialWarehouse;
import com.dmpp.mes.service.AromaService;
import com.dmpp.mes.service.MaterialWarehouseService;
import com.github.pagehelper.PageInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service(value = "MaterialWarehouseService")

public class MaterialWarehouseServiceImpl implements MaterialWarehouseService {

    @Autowired
    private MaterialWarehouseMapper mapper;

    @Override
    public ResponseData findAll(MaterialWarehouse materialWarehouse) {
        ResponseData responseData = new ResponseData();
        PageInfo pageInfo = new PageInfo<>(mapper.findAll(materialWarehouse));
        responseData.setData(pageInfo);
        return responseData;
    }

}
